import {
  Column,
  PrimaryGeneratedColumn,
  CreateDateColumn
} from 'typeorm'
import { EntityModel } from '@midwayjs/orm'

@EntityModel('ie_constant')
export class Constant {

  @PrimaryGeneratedColumn()
  id: number;

  @Column({
    comment: '标识',
    unique: true
  })
  code: string;

  @Column({
    comment: '对应内容'
  })
  content: string;

  @CreateDateColumn({
    comment: '创建时间'
  })
  create_at: Date;
}
